﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGeneratorSelector
{
    public class CodeGeneratorSelector
    {
        public void Generate(int projectId, string outputPath,int stlyeId,string destPath,string sourcePath)
        {
            if (stlyeId == 1)
            {
                CodeGenerator generator = new CodeGenerator();
                generator.DeleteDirectoryFolder(outputPath);
                generator.Generate(projectId, outputPath);
                generator.CompressFile(destPath, sourcePath);
                
            }
            else if (stlyeId == 2)
            {

                CodeGeneratorBootstrap generator = new CodeGeneratorBootstrap();
                generator.DeleteDirectoryFolder(outputPath);
                generator.Generate(projectId, outputPath);
                generator.CompressFile(destPath, sourcePath);
            }
        }
    }
}
